<?php
/**
 # com_jvframework - JV Framework
 # @version		1.5.x
 # ------------------------------------------------------------------------
 # author    Open Source Code Solutions Co
 # copyright Copyright (C) 2011 joomlavi.com. All Rights Reserved.
 # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL or later.
 # Websites: http://www.joomlavi.com
 # Technical Support:  http://www.joomlavi.com/my-tickets.html
-------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

jimport( 'joomla.plugin.plugin' );

if(JFactory::getApplication()->isAdmin() == false && JFactory::getApplication()->getTemplate() == 'jv-framework'){
    JLoader::import('framework', JPATH_ADMINISTRATOR.DS.'components'.DS.'com_jvframework'.DS.'libraries'); JVFactory::getFramework(JFactory::getDocument(), 'site');
    JLoader::import('view', JPATH_ADMINISTRATOR.DS.'components'.DS.'com_jvframework'.DS.'libraries'.DS.'joomla'); 
    JLoader::import('modulehelper',JPATH_ADMINISTRATOR.DS.'components'.DS.'com_jvframework'.DS.'libraries'.DS.'joomla');    
    JLoader::import('pagination', JPATH_ADMINISTRATOR.DS.'components'.DS.'com_jvframework'.DS.'libraries'.DS.'joomla'); 
}  

class plgSystemJVFramework extends JPlugin{}
